package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterMsfTasksUpdateRequest struct {
	/*
	   子订单号列表。最多100个     */
	BizOrderIds *[]int64 `json:"biz_order_ids" required:"true" `
	/*
	   周期序号。必须与子订单列表对应     */
	Seqs *[]int32 `json:"seqs" required:"true" `
	/*
	   工人手机号     */
	WorkerMobile *int64 `json:"worker_mobile" required:"true" `
	/*
	   服务编码     */
	ServiceCode *string `json:"service_code" required:"true" `
	/*
	   调用来源     */
	Source *string `json:"source" required:"true" `
}

func (s *TmallServicecenterMsfTasksUpdateRequest) SetBizOrderIds(v []int64) *TmallServicecenterMsfTasksUpdateRequest {
	s.BizOrderIds = &v
	return s
}
func (s *TmallServicecenterMsfTasksUpdateRequest) SetSeqs(v []int32) *TmallServicecenterMsfTasksUpdateRequest {
	s.Seqs = &v
	return s
}
func (s *TmallServicecenterMsfTasksUpdateRequest) SetWorkerMobile(v int64) *TmallServicecenterMsfTasksUpdateRequest {
	s.WorkerMobile = &v
	return s
}
func (s *TmallServicecenterMsfTasksUpdateRequest) SetServiceCode(v string) *TmallServicecenterMsfTasksUpdateRequest {
	s.ServiceCode = &v
	return s
}
func (s *TmallServicecenterMsfTasksUpdateRequest) SetSource(v string) *TmallServicecenterMsfTasksUpdateRequest {
	s.Source = &v
	return s
}

func (req *TmallServicecenterMsfTasksUpdateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.BizOrderIds != nil {
		paramMap["biz_order_ids"] = util.ConvertBasicList(*req.BizOrderIds)
	}
	if req.Seqs != nil {
		paramMap["seqs"] = util.ConvertBasicList(*req.Seqs)
	}
	if req.WorkerMobile != nil {
		paramMap["worker_mobile"] = *req.WorkerMobile
	}
	if req.ServiceCode != nil {
		paramMap["service_code"] = *req.ServiceCode
	}
	if req.Source != nil {
		paramMap["source"] = *req.Source
	}
	return paramMap
}

func (req *TmallServicecenterMsfTasksUpdateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
